package com.peter.design.pattern.observer.event;

import java.util.EventObject;

//作者就是事件源，而读者就是监听器
public class WriterEvent extends EventObject{

    private static final long serialVersionUID = 8546459078247503692L;

    public WriterEvent(Writer writer) {
        super(writer);
    }

    public Writer getWriter(){
        return (Writer) super.getSource();
    }

}
